import request from '@/utils/request'

export function draw_list(query) {//分页查询
    return request({
        url: '/api/draw/list',
        method: 'post',
        data: query
    })
}
export function draw_edit(query) {//修改draw
    return request({
      url: '/api/draw/edit',
      method: 'post',
      data: query
    })
}
export function draw_updateCloseStatus(query) {//批量打开或关闭Draw
    return request({
      url: '/api/draw/updateCloseStatus',
      method: 'post',
      data: query
    })
}
export function draw_updateTopStatus(query) {//批量置顶或取消置顶  
    return request({
        url: '/api/draw/updateTopStatus',
        method: 'post',
        data: query
    })
}
export function draw_save(data) {//新增Draw
    return request({
      url: '/api/draw/save',
      method: 'post',
      data: data
    })
}
export function draw_findById(data) {//根据id查询Draw
    return request({
      url: '/api/draw/findById',
      method: 'post',
      data: data
    })
}
export function draw_delete(data) {//根据id删除Draw
    return request({
      url: '/api/draw/delete',
      method: 'post',
      data: data
    })
}
export function draw_deleteAll(data) {
    return request({
      url: '/api/draw/deleteAll',
      method: 'post',
      data: data
    })
}